package com.fjnu.fjnu_grade_demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fjnu.fjnu_grade_demo.moudle.entity.StudentCourseGrade;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StudentCourseGradeMapper extends BaseMapper<StudentCourseGrade> {

    /**
     * 根据学年和学期查询学生课程成绩列表
     *
     * @param userName 用户名
     * @param academicYear 学年
     * @param semester 学期
     * @return 学生课程成绩列表
     */
    public List<StudentCourseGrade> selectByAcademicYearAndSemester(
            @Param("userName") String userName,
            @Param("academicYear") String academicYear,
            @Param("semester") String semester);

}
